package com.example.server.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.server.web.domain.CourseClassTeacher;
import com.example.server.web.domain.dto.CourseClassTeacherParamDto;
import com.example.server.web.domain.vo.CourseClassTeacherVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 作者
 * @since 2023-04-04
 */
public interface CourseClassTeacherMapper extends BaseMapper<CourseClassTeacher> {

    /**
     * 获取课程-班级-教师的分页信息
     * @param paramDto
     * @param current
     * @param limit
     * @return
     */
    List<CourseClassTeacherVo> getAllToPage(@Param("paramDto") CourseClassTeacherParamDto paramDto,@Param("current") Integer current,@Param("limit") Integer limit);

    /**
     * 获取课程-班级-教师的总条数
     * @param paramDto
     * @return
     */
    Long getAllToNum(@Param("paramDto") CourseClassTeacherParamDto paramDto);
}
